<script>
  import { h, resolveDynamicComponent } from 'vue';

  function Icon(props) {
    const Component = resolveDynamicComponent(`icon-${props.icon}`);
    // const Component = resolveDynamicComponent(`${props.icon}`);
    return h(Component);
  }
  // eslint-disable-next-line vue/require-direct-export
  export default Icon;
</script>
